<template name="cgrukou">
	<view class="" style="margin: 20rpx; border-radius: 10rpx;overflow: hidden;">
		<view class="constant" style="margin-bottom: 20rpx; border-radius: 10rpx;overflow: hidden;" v-for="(item,index) in cglist" :key="index">
			<!-- <view class="title">
				<text>火爆活动</text>
			</view> -->
			<view class="cglist" >
				<view class="imgbox">
					<image :src="item.img" mode="" @tap="cgxiangqing(item.id,item.storeId)"></image>
				</view>
				<view class="imgleft">
					<view class="toptitle">
						<text style="color: #000;font-size: 30rpx;font-weight: 900;">{{item.actName}}</text>
					</view>
					<view class="" style="display: flex;justify-content: space-between;">
						<view class="jiage">
							<text style="color: red;font-size: 24rpx;">¥</text>
							<text style="color: red;font-size: 35rpx;font-weight: 700;margin-right: 10rpx;">{{item.paymentPrice}}</text>
							<text v-if="item.linePrice > 0" style="color: #ccc;font-size: 24rpx;text-decoration: line-through;">¥{{item.linePrice}}</text>
						</view>
						<view class="baoming" @tap="cgxiangqing(item.id,item.storeId)">
							<text>报名</text>
						</view>
					
					</view>
					<!-- 倒计时 -->
					<!-- <mytime3 :item='item'></mytime3>				 -->
					<!-- <view class="yibaoming">
						<text style="color: #ccc;font-size: 24rpx;">已报{{item.winNum}}人</text>
					</view> -->
					
					
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import mytime3 from '../mytime/mytime3.vue';
export default {
	components:{
		mytime3,		
	},
	name: 'cgrukou',
	props: {
		cglist: {
			type: Array,
			default: () => []
		},
		// dis: String
	},
	data() {
		return {};
	},
	methods: {
		cgxiangqing(id,storeId){
			this.toPage({
				url:'cgxiangqing',
				id:id,
				storeId:storeId
			})
		},
		
		
		
	}
	
	
	
	
};
</script>

<style lang="less">
	.constant{
		background-color: #fff;
		padding: 20rpx;
		// padding-bottom: 20rpx;
		.title{
			width: 100%;
			height: 80rpx;
			
			text{
				font-weight: 900;
				line-height: 80rpx;
				font-size: 26rpx;
				color: red;
			}
		}
		.cglist{
			width: 100%;
			// height: 355rpx;
			// background-color: green;
			
			display: flex;
			flex-direction: column;
			justify-content: center;
			
			.imgbox {
				image{
					width: 100%;
					height: 377rpx;
					// height: 255rpx;
					border-radius: 8rpx;
				}
			}
			.imgleft{
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				margin-top: 20rpx;
				// margin-left: 50rpx;
				.toptitle{
					margin-bottom: 20rpx;
					height: 40rpx;
					overflow: hidden;
				}
				.jiage{
					// margin-bottom: 40rpx;
				}
				
				// .yibaoming{
				// 	margin-bottom: 40rpx;
				// }
				.baoming{
					width: 290rpx;
					height: 60rpx;
					border-radius: 30rpx;
					text-align: center;
					line-height: 60rpx;
					font-size: 28rpx;
					color: #fff;
					background-color: red;
					// margin-top: 30rpx;
					
				}
			}
			
		}
	}


</style>
